import request from '@/utils/request';

export async function queryRule(params?: any) {
  return request('/app-admin/outsourcing/activityTask/list', {
    params,
  });
}
export async function selectTeacher(params?: { keys?:string}) {
  return request('/app-admin/iqidao/user/getUserByNameOrPhone', {
    params: {
      ...params,
      group:1
    }
  });
}
// select2相关接口
// 查学生(昵称 + 手机号)
export async function selectStudent(key?:string) {
  return request('/app-admin/iqidao/user/searchStudent', {
    params: {
      key
    }
  });
}

export async function queryInfo(params?: any) {
  return request('/app-admin/outsourcing/activity/info', {
    params,
  });
}
export async function selectActivity(params?: { key?:string}) {
  return request('/app-admin/outsourcing/activity/select', {
    params: {
      ...params,
      group:1
    }
  });
}
